DataSource for Entity Framework in WPF
C1.LiveLinq Namespace / IndexedQueryExtensions Class / ToIndexed Method / ToIndexed<T>(IBindingList) Method
The type of the elements in the collection.
An System.ComponentModel.IBindingList data source to represent as an C1.LiveLinq.Collections.IndexedCollection<T>.

In This Topic
    ToIndexed<T>(IBindingList) Method
    In This Topic
    Syntax
    'Declaration
     
    Public Overloads Shared Function ToIndexed(Of T)( _
       ByVal source As IBindingList _
    ) As IndexedCollection(Of T)
    public static IndexedCollection<T> ToIndexed<T>( 
       IBindingList source
    )

    Parameters

    source
    An System.ComponentModel.IBindingList data source to represent as an C1.LiveLinq.Collections.IndexedCollection<T>.

    Type Parameters

    T
    The type of the elements in the collection.

    Return Value

    An C1.LiveLinq.Collections.IndexedCollection<T> that contains the same elements as the System.ComponentModel.IBindingList and enables indexing of that data source.
    Remarks

    Use this method to index and query your existing data sources. The only requirements for the data source is that it implements the standard data binding interface System.ComponentModel.IBindingList.

    Note: Indexes created on the resulting C1.LiveLinq.Collections.IndexedCollection<T> are owned by it and not by the original data source. Every ToIndexed() call creates a separate object that has its own separate indexes. Avoid calling ToIndexed() repeatedly for the same collection because it can increase the cost of maintaining indexes.

    See Also